package com.xieyingwangluo.yxpart.mapper;

import com.xieyingwangluo.yxpart.entity.WalletModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface WalletMapper {
    /**
     * 新增保存
     *
     * @return
     */
    //@CacheEvict(value="d_user",allEntries = true)
    int add(WalletModel wallet);

    /**
     * 根据id获取用户信息
     *
     * @param noid
     * @return
     */
    //@Cacheable(value="d_demo",key="'UserMapper_getById_'+#noid")
    WalletModel getById(@Param("noid") String noid);
}
